package com.brainhealth.customer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 积分商城商品分类对象 score_mall_goods_category
 * 
 * @author wolong
 * @date 2023-11-01
 */
public class ScoreMallGoodsCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类表主键 */
    private Long id;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 父级分类编号 */
    @Excel(name = "父级分类编号")
    private Long parentCategoryId;

    /** 删除标志(0：未删除 1：已删除) */
    @Excel(name = "删除标志(0：未删除 1：已删除)")
    private Integer yn;

    /** 商品信息道具显示层级 */
    @Excel(name = "数值排序")
    private Integer layer;
    /**
     * 积分商城分类子分类列表
     */
    private List<ScoreMallGoodsCategory> children;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setParentCategoryId(Long parentCategoryId) 
    {
        this.parentCategoryId = parentCategoryId;
    }

    public Long getParentCategoryId() 
    {
        return parentCategoryId;
    }

    public Integer getLayer()
    {
        return layer;
    }

    public void setLayer(Integer layer)
    {
        this.layer = layer;
    }

    public void setYn(Integer yn)
    {
        this.yn = yn;
    }

    public Integer getYn() 
    {
        return yn;
    }

    public List<ScoreMallGoodsCategory> getChildren()
    {
        return children;
    }

    public void setChildren(List<ScoreMallGoodsCategory> children)
    {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("parentCategoryId", getParentCategoryId())
            .append("yn", getYn())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
